<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>propsData</title>
    <script type="text/javascript" src="../assets/js/vue-2.3.0.js"></script>
</head>

<body>
    <h1>propsData</h1>
    <hr>
    
    <div id="demo"></div>

</body>
<script type="text/javascript">
    var ds = Vue.extend({
        template: '<div>{{city}}--{{areas}}</div>',
        data: function () {
            return {
                city: 'Shanghai'
            }
        },
        props:['areas']
    })
    new ds({propsData:{areas:'putuo'}}).$mount('#demo')
    

</script>

</html>